﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Store.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<YourStore.Models.OrderDetail>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Order Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Order Details</h2>
    
    <table class="admin">
        <tr>
           <th width="350">
                Product
            </th>
            <th>
                Quantity
            </th>
            <th>
                UnitPrice
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: item.Product.Name %>
            </td>
            <td>
                <%: item.Quantity %>
            </td>
            <td>
               $ <%: String.Format("{0:F}", item.UnitPrice) %>
            </td>
        </tr>
    
    <% } %>

    </table>
   </asp:Content>

